var t = require("../common.js"), e = getApp();

Page({
    behaviors: [ t ],
    data: {
        active: "0",
        memberInfo: {},
        statistics: {}
    },
    onLoad: function(t) {
        this.getData();
    },
    onReady: function() {},
    gotoOrder: function() {
        wx.navigateTo({
            url: "/packageA/member/myOrder_v2/myOrder_v2?status=0&orderType=storeMang"
        });
    },
    getData: function() {
        var t = this, a = e.getNetAddresss("plugin.shop-assistant.frontend.index.index");
        e._getNetWork({
            url: a,
            data: {
                time_type: this.data.active
            },
            success: function(a) {
                var n = a.data;
                if (1 != n.result) return e.tips(n.msg);
                t.setData({
                    memberInfo: n.data.member,
                    statistics: n.data.data
                });
            }
        });
    },
    changeTab: function(t) {
        this.data.active = t.detail.name, this.getData();
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});